package bigDecimalTset;

import java.time.LocalDate;
import java.time.LocalDateTime;
import java.time.LocalTime;

public class LocalDateTimeTest {
    public static void main(String[] args) {
        localDateTimeTest();
    }

    public static void localDateTimeTest() {
        LocalDateTime today = LocalDateTime.now();
        System.out.println(today);

        LocalDate todayTime = LocalDate.now(); // 获取今天的日期
        LocalDateTime startOfDay = todayTime.atStartOfDay();
        LocalDateTime minDateTime = todayTime.atTime(LocalTime.MAX);
        System.out.println(startOfDay);
        System.out.println(minDateTime);
    }
}
